import {
  Dimensions
} from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';
// 封装成全局的就后面不用再每一个文件引入上面一长流了，后面直接使用AsyncStorage
global.AsyncStorage=AsyncStorage;

global.w = Dimensions.get('window').width
global.h = Dimensions.get('window').height
console.log(w, h);
global.p2d = (size) => { return size * w / 540 }
